//
//  MTLoginHomeVC.m
//  met
//
//  Created by 李晓俊 on 2019/5/7.
//  Copyright © 2019 李晓俊. All rights reserved.
//

#import "MTLoginHomeVC.h"
#import "MTLoginPhoneVC.h"
@interface MTLoginHomeVC ()
@property (weak, nonatomic) IBOutlet UIButton *goBut;
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIImageView *photoView;

 
@property (nonatomic,assign) int heightCount;

@end

@implementation MTLoginHomeVC
- (void)CreateNav {
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self wr_setNavBarBackgroundAlpha:0];

    self.bgView.layer.borderWidth = 2;
    self.bgView.layer.borderColor = KBlackColor.CGColor;
    
    self.goBut.layer.borderWidth = 2;
    self.goBut.layer.borderColor = KBlackColor.CGColor;
    
    self.heightCount = 0;
    self.photoView.y = kScreenHeight-1280;

    [self setAni];
}
- (void)setAni {
    [UIView animateWithDuration:10 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
        int y =  kScreenHeight-1280;
        self.photoView.y = y;
    } completion:^(BOOL finished) {
        [self setAni2];
    }];
}
- (void)setAni2 {
    [UIView animateWithDuration:10 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
        int y = 0 ;
        self.photoView.y = y;
    } completion:^(BOOL finished) {
        [self setAni];
    }];
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    // 设置导航栏默认的背景颜色
    [WRNavigationBar wr_setDefaultNavBarBarTintColor:KWhiteColor];
    [WRNavigationBar wr_setDefaultNavBarShadowImageHidden:YES];
}
- (IBAction)goClick:(id)sender {
    MTLoginPhoneVC *vc = GetViewControllerInStoryboard(@"Login", @"MTLoginPhoneVC");
    [self.navigationController pushViewController:vc animated:YES];
}

 
 
@end
